import Vue from 'vue'
import VueRouter from 'vue-router'
import Goods from '../views/goods.vue'
import Ratings from '../views/ratings.vue'
import Seller from '../views/seller.vue'

Vue.use(VueRouter)

const routes = [
	{
		name:'goods',
		path:'/',
		component:Goods
	},
	{
		name:'ratings',
		path:'/ratings',
		component:Ratings
	},
	{
		name:'seller',
		path:'/seller',
		component:Seller
	}
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
